home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / reader_requests / notes / deutsch / bassschlüssel.rexx < prev    next >
OS/2 REXX Batch file  |  2000-02-23  |  37KB  |  1,285 lines

  1. /* Unterprogramm zu Noten.pprx */
  2.  
  3. signal on halt
  4. signal on break_c
  5. signal on break_e
  6. signal on break_d
  7. call ppm_SetStyle(N)
  8.  
  9. noteneingabe:
  10.     /* Kleinster Notenabstand */
  11.  
  12.     xgrdform = "(1,2,4,8 oder 16)"
  13.     xgrd = ppm_GetForm("Bitte für den kleinsten Notenwert eingeben ...", 3, xgrdform)
  14.     if xgrd == '' then  notenwert()
  15.     select
  16.      when xgrd == '1' then xg =0.7
  17.      when xgrd == '2' then xg =1.4
  18.      when xgrd == '4' then xg =2.8
  19.      when xgrd == '8' then xg =5.6
  20.      when xgrd == '16' then xg =11.2
  21.      otherwise notenwert()
  22.     end
  23.  
  24.    /* Punktgröße der Noten */
  25.    notepkt = 26
  26.    call ppm_SetJustification(0)
  27.  
  28.    zz = 0 /* Zeilenzähler */
  29.    notex = 0
  30.    notey = 0
  31.    page = ppm_CurrentPage()
  32.  
  33. clickpos:
  34.    res = ppm_GetUserText(2, "Manuell oder an Box ausrichten ? m/b")
  35.    if res == 'M' then res = 'm'
  36.    if res == 'B' then res = 'b'
  37.  select
  38.    when res == 'm' then
  39.      do
  40.        clickpos = ppm_GetClickPosition("Bitte die Stelle anklicken wo ich beginnen soll...")
  41.        if clickpos == 0 then
  42.            do
  43.            exit_msg("Falsche Eingabe !! ENDE !!")
  44.            end
  45.        else
  46.            do
  47.            notey = word(clickpos, 2)
  48.            notex = word(clickpos, 1)
  49.            if notex < 2.5 then notex = 2.5
  50.            xw = notex
  51.            yw = notey
  52.              if notey <= 5.3  then zz= 0   /* zz ist ZeilenZähler */
  53.              if ((notey > 7.5)&(notey < 9.3)) then zz = 4
  54.              if ((notey > 11.5)&(notey < 13.3)) then zz = 8
  55.              if ((notey > 15.5)&(notey < 17.3)) then zz = 12
  56.              if ((notey > 19.5)&(notey < 21.3)) then zz = 16
  57.              if ((notey > 22.5)&(notey < 25.3)) then zz = 20
  58.              if notey > 25.3 then noteneingabe()
  59.            end
  60.      end
  61.    when res == 'b' then
  62.       do
  63.         clickbox = ppm_ClickOnBox("Bitte eine Box anklicken, an der Stelle, wo es weitergeht ...")
  64.         pos = ppm_GetBoxPosition(clickbox)
  65.         notex = word(pos, 1)
  66.         notey = word(pos, 2)
  67.         xw = notex
  68.         yw = notey
  69.         call ppm_BoxAtPosn(notex, notey, page)
  70.         if notey <= 3.3  then zz= 0
  71.         if ((notey > 5.5)&(notey < 9.3))  then zz = 4
  72.         if ((notey > 9.5)&(notey < 13.3)) then zz = 8
  73.         if ((notey > 13.5)&(notey < 17.3)) then zz = 12
  74.         if ((notey > 17.5)&(notey < 21.3)) then zz = 16
  75.         if ((notey > 21.5)&(notey < 25.3)) then zz = 20
  76.         if notey > 25.3 then noteneingabe()
  77.  
  78.         if notex <= 1 then
  79.         do
  80.           noteneingabe()
  81.         end
  82.       end
  83.    otherwise clickpos()
  84.  end
  85.  
  86.    /* Zeigerbox */
  87.  
  88.    zbid = ppm_CreateBox(notex, zz+2.5, 0.3, 1, 0)
  89.    call ppm_SetSize(26)
  90.    zbn = ppm_GetBoxName(zbid)
  91.    call ppm_TextIntoBox(zbn, '5')
  92.  
  93. notenwert:
  94.  
  95.    do forever
  96.            cr = '0a'x
  97.            form = "Wert Name ['A'ufl.]"
  98.            call ppm_SetBoxPosition(zbid, notex, zz+2.5)
  99.            call ppm_UpdateScreen()
  100.            eingabe = ppm_GetForm("Bitte für die Noten eingeben ...(nichts=Abbruch)", 9, form)
  101.            if eingabe == '' then
  102.            do
  103.             call ppm_DeleteBox(zbid)
  104.             exit_msg()
  105.            end
  106.            nw = word(eingabe, 1)
  107.            if nw == 'P' then nw = 'p'
  108.            nn = word(eingabe, 2)
  109.            al = word(eingabe, 3)
  110.            if al == 'A' then al = 'a'
  111.            IF nw == 'D' then nw = 'd'
  112.            if nw == 'LEFT' then nw = 'left'
  113.            if nw == 'L' then nw = 'l'
  114.            if nw == 'T' then nw = 't'
  115.            if nn == 'T' then nn = 't'
  116.            if nw == "NEU" then nw = "neu"
  117.  
  118.     /* x-Abstände der Noten zueinander */
  119. auswahl:
  120.      select
  121.       when nw == 's' then
  122.           do
  123.           xw = xg/16
  124.           nw='x'
  125.           yv = 0
  126.           end
  127.       when nw  == 'S' then
  128.           do
  129.           xw = xg/16
  130.           nw='X'
  131.           yv = 0.47
  132.           end
  133.       when nw == 'a' then
  134.           do
  135.           xw = xg/8
  136.           nw='e'
  137.           yv = 0
  138.           end
  139.       when nw == 'A' then
  140.           do
  141.           xw = xg/8
  142.           nw='E'
  143.           yv = 0.47
  144.           end
  145.       when nw == 'v' then
  146.           do
  147.           xw = xg/4
  148.           nw='q'
  149.           yv = 0
  150.           end
  151.       when nw == 'V' then
  152.           do
  153.           xw = xg/4
  154.           nw='Q'
  155.           yv = 0.47
  156.           end
  157.       when nw == 'h' then
  158.           do
  159.           xw = xg/2
  160.           yv = 0
  161.           end
  162.       when nw == 'H' then
  163.           do
  164.           xw = xg/2
  165.           yv = 0.47
  166.           end
  167.       when nw == 'g' then
  168.           do
  169.           xw = xg
  170.           nw='w'
  171.           yv = 0
  172.           end
  173.       when nw == 'G' then
  174.           do
  175.           xw = xg
  176.           nw='W'
  177.           yv = 0.47
  178.           end
  179.  
  180.      /* Sprung an den Anfang der Zeile */
  181.       when nw == 'left' then
  182.           do
  183.            call ppm_SetPagePosition(0, zz+0.5)
  184.           end
  185.  
  186.      /* Punkt nach der Note - muß als erstes eingegeben werden falls gewünscht
  187.         den nötigen Freiraum mit "sp" eingeben */
  188.  
  189.       when nw == 'pk' then
  190.           do
  191.             call ppm_SetSize(25)
  192.             box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  193.             call ppm_SetSize(20)
  194.             call ppm_TextIntoBox(box#id, 'd')
  195.  
  196.            select
  197.                when nn == '1' then
  198.                do
  199.                xw = xg
  200.                notex = notex+xw
  201.                end
  202.                when nn == '2' then
  203.                do
  204.                xw = xg/2
  205.                notex = notex+xw
  206.                end
  207.                when nn == '4' then
  208.                do
  209.                xw = xg/4
  210.                notex = notex+xw
  211.                end
  212.                when nn == '8' then
  213.                do
  214.                xw = xg/8
  215.                notex = notex+xw
  216.                end
  217.                when nn == '16' then
  218.                do
  219.                xw  = xg/16
  220.                notex = notex+xw
  221.                end
  222.                when nn == 't' then
  223.                do
  224.                xw  = 0.2
  225.                notex = notex+xw
  226.                end
  227.                otherwise notenwert()
  228.            end
  229.            if notex >=18.7 then
  230.                do
  231.                  notex = 2.5
  232.                  zz = zz + 4
  233.                end
  234.            px = notex - 4
  235.            py = zz-1
  236.            if px < 0 then px = 0
  237.            call ppm_SetPagePosition(px, py+1.5)
  238.            notenwert()
  239.  
  240.           end
  241.  
  242.       when nw == 'PK' then
  243.           do
  244.             call ppm_SetSize(25)
  245.             box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  246.             call ppm_SetSize(20)
  247.             call ppm_TextIntoBox(box#id, 'd')
  248.            select
  249.                when nn == '1' then
  250.                do
  251.                xw = xg
  252.                notex = notex+xw
  253.                end
  254.                when nn == '2' then
  255.                do
  256.                xw = xg/2
  257.                notex = notex+xw
  258.                end
  259.                when nn == '4' then
  260.                do
  261.                xw = xg/4
  262.                notex = notex+xw
  263.                end
  264.                when nn == '8' then
  265.                do
  266.                xw = xg/8
  267.                notex = notex+xw
  268.                end
  269.                when nn == '16' then
  270.                do
  271.                xw  = xg/16
  272.                notex = notex+xw
  273.                end
  274.                when nn == 't' then
  275.                do
  276.                xw  = 0.2
  277.                notex = notex+xw
  278.                end
  279.                otherwise notenwert()
  280.            end
  281.            if notex >=18.7 then
  282.                do
  283.                  notex = 2.5
  284.                  zz = zz + 4
  285.                end
  286.            px = notex - 4
  287.            py = zz-1
  288.            if px < 0 then px = 0
  289.            call ppm_SetPagePosition(px, py+1.5)
  290.            notenwert()
  291.           end
  292.  
  293.  
  294.      /* Löschen */
  295.       when nw == 'd' then
  296.           do
  297.            oldpos = notex
  298.            thisbox = ppm_BoxNum()
  299.            if thisbox == zbid then
  300.              do
  301.              ppm_Inform(1, "Nichts mehr zu löschen!","OK")
  302.              notenwert()
  303.              end
  304.            lpos= ppm_GetBoxPosition()
  305.            notex = word(lpos, 1)
  306.            call ppm_DeleteBox()
  307.            diff = oldpos - notex
  308.            if (diff < 0.3)&(diff > 0.1) then notex = notex + 0.23
  309.            py = zz - 1
  310.            px = notex - 4
  311.            if px < 0 then px = 0
  312.            call ppm_SetPagePosition(px, py+1.5)
  313.            notenwert()
  314.           end
  315.  
  316.       /* Taktstrich */
  317.       when nw == 't' then
  318.           do
  319.            call ppm_SetLineWeight(0.25)
  320.            call ppm_DrawLine(notex, 4+zz, notex, 4.8+zz)
  321.            notex = notex+0.2
  322.           end
  323.  
  324.  
  325.       when nw == 'p' | when nw == 'P' then
  326.       do
  327. pausenwert:
  328.         /* wert = ppm_GetForm("1/1 1/2 1/4 1/8 1/16 ...?", 2, "1 , 2, 4, 8, 16") */
  329.         x = notex
  330.         select
  331.             when nn == '1' then do
  332.  
  333.                 y = 4.29+zz
  334.                 call ppm_SetLineWeight(4)
  335.                 call ppm_DrawLine(x, y, x+0.4, y)
  336.                 call ppm_SetLineWeight(0.25)
  337.                 xw = xg
  338.                 notex = notex+xw
  339.             end
  340.  
  341.             when nn == '2' then do
  342.  
  343.                 y = 4.33+zz
  344.                 call ppm_SetLineWeight(4)
  345.                 call ppm_DrawLine(x, y, x+0.4, y)
  346.                 call ppm_SetLineWeight(0.25)
  347.                 xw = xg/2
  348.                 notex = notex+xw
  349.             end
  350.  
  351.             when nn == '4' then do
  352.  
  353.                 y = 4.07+zz
  354.                 Pbox = ppm_CreateBox(x, y, 0.59, 0.86, 0)
  355.                 boxnm = ppm_DocNextBox(Pbox)
  356.                 call ppm_DeleteContents(boxnm)
  357.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/viertelPause', pause)
  358.                 xw = xg/4
  359.                 notex = notex+xw
  360.             end
  361.  
  362.             when nn == '8' then do
  363.  
  364.                 y = 4.21+zz
  365.                 Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  366.                 boxnm = ppm_DocNextBox(Pbox)
  367.                 call ppm_DeleteContents(boxnm)
  368.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/achtelPause', pause)
  369.                 xw = xg/8
  370.                 notex = notex+xw
  371.             end
  372.  
  373.             when nn == '16' then do
  374.  
  375.                 y = 4.21+zz
  376.                 Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  377.                 boxnm = ppm_DocNextBox(Pbox)
  378.                 call ppm_DeleteContents(boxnm)
  379.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/sechzehntelPause', pause)
  380.                 xw = xg/16
  381.                 notex = notex+xw
  382.             end
  383.         otherwise notenwert()
  384.         end
  385.         if notex >=18.7 then
  386.             do
  387.               notex = 2.5
  388.               zz = zz + 4
  389.             end
  390.         px = notex - 4
  391.         py = zz-1
  392.         if px < 0 then px = 0
  393.         call ppm_SetPagePosition(px, py+1.5)
  394.         notenwert()
  395.       end
  396.  
  397.     /* Freiräume "space" */
  398.  
  399.       when nw == 'l' then
  400.         do
  401.  
  402.            /* wert = ppm_GetForm("1/1 1/2 1/4 1/8 1/16 ...?", 2, "1 , 2, 4, 8, 16") */
  403.            select
  404.                when nn == '1' then
  405.                do
  406.                xw = xg
  407.                notex = notex+xw
  408.                end
  409.                when nn == '2' then
  410.                do
  411.                xw = xg/2
  412.                notex = notex+xw
  413.                end
  414.                when nn == '4' then
  415.                do
  416.                xw = xg/4
  417.                notex = notex+xw
  418.                end
  419.                when nn == '8' then
  420.                do
  421.                xw = xg/8
  422.                notex = notex+xw
  423.                end
  424.                when nn == '16' then
  425.                do
  426.                xw  = xg/16
  427.                notex = notex+xw
  428.                end
  429.                when nn == 't' then
  430.                do
  431.                xw  = 0.2
  432.                notex = notex+xw
  433.                end
  434.                otherwise notenwert()
  435.            end
  436.            if notex >=18.7 then
  437.                do
  438.                  notex = 2.5
  439.                  zz = zz + 4
  440.                end
  441.            px = notex - 4
  442.            py = zz-1
  443.            if px < 0 then px = 0
  444.            call ppm_SetPagePosition(px, py+1.5)
  445.            notenwert()
  446.         end
  447.  
  448.       when nw == 'neu' then
  449.         do
  450.           call ppm_DeleteBox(zbid)
  451.           clickpos()
  452.         end
  453.       otherwise notenwert()
  454.       end
  455.  
  456.         /* y-Raster der Noten - Notenhälse nach oben (y-Position der Box) */
  457.  
  458.        call ppm_SetLineWeight(0.25)
  459.  
  460.       select
  461.         when nn=='g#3'  then
  462.         do
  463.             yw = 2.745
  464.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  465.             call ppm_SetSize(20)
  466.             call ppm_TextIntoBox(box#id, 's')
  467.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  468.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  469.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  470.         end
  471.  
  472.         when nn=='g3'  then
  473.         do
  474.             yw = 2.745
  475.             if al == 'a' then call auflhoch()
  476.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  477.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  478.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  479.         end
  480.  
  481.         when nn=='gb3' then
  482.         do
  483.             yw = 2.745
  484.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  485.             call ppm_SetSize(20)
  486.             call ppm_TextIntoBox(box#id, 'f')
  487.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  488.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  489.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  490.         end
  491.  
  492.         when nn=='f#3'  then
  493.         do
  494.             yw = 2.845
  495.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  496.             call ppm_SetSize(20)
  497.             call ppm_TextIntoBox(box#id, 's')
  498.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  499.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  500.         end
  501.  
  502.         when nn=='f3'  then
  503.         do
  504.             yw = 2.845
  505.             if al == 'a' then call auflhoch()
  506.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  507.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  508.         end
  509.  
  510.         when nn=='e#3'  then
  511.         do
  512.             yw = 2.945
  513.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  514.             call ppm_SetSize(20)
  515.             call ppm_TextIntoBox(box#id, 's')
  516.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  517.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  518.         end
  519.  
  520.         when nn=='e3'  then
  521.         do
  522.             yw = 2.945
  523.             if al == 'a' then call auflhoch()
  524.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  525.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  526.         end
  527.  
  528.         when nn=='eb3' then
  529.         do
  530.             yw = 2.945
  531.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  532.             call ppm_SetSize(20)
  533.             call ppm_TextIntoBox(box#id, 'f')
  534.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  535.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  536.         end
  537.  
  538.         when nn=='d#3'  then
  539.         do
  540.             yw = 3.045
  541.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  542.             call ppm_SetSize(20)
  543.             call ppm_TextIntoBox(box#id, 's')
  544.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  545.         end
  546.  
  547.         when nn=='d3' then
  548.         do
  549.             yw = 3.045
  550.             if al == 'a' then call auflhoch()
  551.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  552.         end
  553.  
  554.         when nn=='db3'    then
  555.         do
  556.             yw = 3.045
  557.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  558.             call ppm_SetSize(20)
  559.             call ppm_TextIntoBox(box#id, 'f')
  560.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  561.         end
  562.  
  563.         when nn=='c#3'    then
  564.         do
  565.             yw = 3.145
  566.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  567.             call ppm_SetSize(20)
  568.             call ppm_TextIntoBox(box#id, 's')
  569.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  570.         end
  571.  
  572.         when nn=='c3'     then
  573.         do
  574.             yw = 3.145
  575.             if al == 'a' then call auflhoch()
  576.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  577.         end
  578.  
  579.         when nn=='h2'     then
  580.         do
  581.             yw = 3.245
  582.             if al == 'a' then call auflhoch()
  583.         end
  584.         when nn=='b2'     then
  585.         do
  586.             yw = 3.245
  587.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  588.             call ppm_SetSize(20)
  589.             call ppm_TextIntoBox(box#id, 'f')
  590.         end
  591.  
  592.         when nn=='a#2'    then
  593.         do
  594.             yw = 3.345
  595.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  596.             call ppm_SetSize(20)
  597.             call ppm_TextIntoBox(box#id, 's')
  598.         end
  599.  
  600.         when nn=='a2'     then
  601.         do
  602.             yw = 3.345
  603.             if al == 'a' then call auflhoch()
  604.         end
  605.         when nn=='ab2'    then
  606.         do
  607.             yw = 3.345
  608.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  609.             call ppm_SetSize(20)
  610.             call ppm_TextIntoBox(box#id, 'f')
  611.         end
  612.  
  613.         when nn=='g#2'    then
  614.         do
  615.             yw = 3.445
  616.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  617.             call ppm_SetSize(20)
  618.             call ppm_TextIntoBox(box#id, 's')
  619.         end
  620.  
  621.         when nn=='g2'     then
  622.         do
  623.             yw = 3.445
  624.             if al == 'a' then call auflhoch()
  625.         end
  626.         when nn=='gb2'    then
  627.         do
  628.             yw = 3.445
  629.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  630.             call ppm_SetSize(20)
  631.             call ppm_TextIntoBox(box#id, 'f')
  632.         end
  633.  
  634.         when nn=='f#2'    then
  635.         do
  636.             yw = 3.545
  637.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  638.             call ppm_SetSize(20)
  639.             call ppm_TextIntoBox(box#id, 's')
  640.         end
  641.  
  642.         when nn=='f2' then
  643.         do
  644.             yw = 3.545
  645.             if al == 'a' then call auflhoch()
  646.         end
  647.         when nn=='e#2'  then
  648.         do
  649.             yw = 3.645
  650.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  651.             call ppm_SetSize(20)
  652.             call ppm_TextIntoBox(box#id, 's')
  653.         end
  654.         when nn=='e2'     then
  655.         do
  656.             yw = 3.645
  657.             if al == 'a' then call auflhoch()
  658.         end
  659.         when nn=='eb2'    then
  660.         do
  661.             yw = 3.645
  662.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  663.             call ppm_SetSize(20)
  664.             call ppm_TextIntoBox(box#id, 'f')
  665.         end
  666.  
  667.         when nn=='d#2'    then
  668.         do
  669.             yw = 3.745
  670.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  671.             call ppm_SetSize(20)
  672.             call ppm_TextIntoBox(box#id, 's')
  673.         end
  674.  
  675.         when nn=='d2'     then
  676.         do
  677.             yw = 3.745
  678.             if al == 'a' then call auflhoch()
  679.         end
  680.         when nn=='db2'    then
  681.         do
  682.             yw = 3.745
  683.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  684.             call ppm_SetSize(20)
  685.             call ppm_TextIntoBox(box#id, 'f')
  686.         end
  687.  
  688.         when nn=='c#2'    then
  689.         do
  690.             yw = 3.845
  691.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  692.             call ppm_SetSize(20)
  693.             call ppm_TextIntoBox(box#id, 's')
  694.         end
  695.  
  696.         when nn=='c2'     then
  697.         do
  698.             yw = 3.845
  699.             if al == 'a' then call auflhoch()
  700.         end
  701.         when nn=='h1'     then
  702.         do
  703.             yw = 3.945
  704.             if al == 'a' then call auflhoch()
  705.         end
  706.         when nn=='b1'     then
  707.         do
  708.             yw = 3.945
  709.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  710.             call ppm_SetSize(20)
  711.             call ppm_TextIntoBox(box#id, 'f')
  712.         end
  713.  
  714.         when nn=='a#1'    then
  715.         do
  716.             yw = 4.045
  717.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  718.             call ppm_SetSize(20)
  719.             call ppm_TextIntoBox(box#id, 's')
  720.         end
  721.  
  722.         when nn=='a1'     then
  723.         do
  724.             yw = 4.045
  725.             if al == 'a' then call auflhoch()
  726.         end
  727.         when nn=='ab1'    then
  728.         do
  729.             yw = 4.045
  730.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  731.             call ppm_SetSize(20)
  732.             call ppm_TextIntoBox(box#id, 'f')
  733.         end
  734.  
  735.         when nn=='g#1'    then
  736.         do
  737.             yw = 4.145
  738.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  739.             call ppm_SetSize(20)
  740.             call ppm_TextIntoBox(box#id, 's')
  741.         end
  742.  
  743.         when nn=='g1'     then
  744.         do
  745.             yw = 4.145
  746.             if al == 'a' then call auflhoch()
  747.         end
  748.         when nn=='gb1'    then
  749.         do
  750.             yw = 4.145
  751.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  752.             call ppm_SetSize(20)
  753.             call ppm_TextIntoBox(box#id, 'f')
  754.         end
  755.  
  756.         when nn=='f#1'    then
  757.         do
  758.             yw = 4.245
  759.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  760.             call ppm_SetSize(20)
  761.             call ppm_TextIntoBox(box#id, 's')
  762.         end
  763.  
  764.         when nn=='f1'     then
  765.         do
  766.             yw = 4.245
  767.             if al == 'a' then call auflhoch()
  768.         end
  769.  
  770.         when nn=='e#1'  then
  771.         do
  772.             yw = 4.345
  773.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  774.             call ppm_SetSize(20)
  775.             call ppm_TextIntoBox(box#id, 's')
  776.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  777.         end
  778.         when nn=='e1' then
  779.         do
  780.             yw = 4.345
  781.             if al == 'a' then call auflhoch()
  782.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  783.         end
  784.  
  785.         when nn=='eb1'  then
  786.         do
  787.             yw = 4.345
  788.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  789.             call ppm_SetSize(20)
  790.             call ppm_TextIntoBox(box#id, 'f')
  791.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  792.         end
  793.  
  794.         when nn=='d#1'  then
  795.         do
  796.             yw = 4.445
  797.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  798.             call ppm_SetSize(20)
  799.             call ppm_TextIntoBox(box#id, 's')
  800.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  801.         end
  802.  
  803.         when nn=='d1'  then
  804.         do
  805.             yw = 4.445
  806.             if al == 'a' then call auflhoch()
  807.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  808.         end
  809.  
  810.         when nn=='db1' then
  811.         do
  812.             yw = 4.445
  813.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  814.             call ppm_SetSize(20)
  815.             call ppm_TextIntoBox(box#id, 'f')
  816.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  817.         end
  818.  
  819.         when nn=='c#1'  then
  820.         do
  821.             yw = 4.545
  822.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  823.             call ppm_SetSize(20)
  824.             call ppm_TextIntoBox(box#id, 's')
  825.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  826.             call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2)
  827.         end
  828.  
  829.         when nn=='c1'  then
  830.         do
  831.             yw = 4.545
  832.             if al == 'a' then call auflhoch()
  833.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  834.             call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2)
  835.         end
  836.  
  837.     /* y-Raster der Noten - Notenhälse nach unten */
  838.  
  839.         when nn=='G#3'  then
  840.         do
  841.             yw = 3.22
  842.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  843.             call ppm_SetSize(20)
  844.             call ppm_TextIntoBox(box#id, 's')
  845.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  846.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  847.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  848.         end
  849.  
  850.         when nn=='G3'  then
  851.         do
  852.             yw = 3.22
  853.             if al == 'a' then call aufltief()
  854.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  855.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  856.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  857.         end
  858.  
  859.         when nn=='GB3' then nn = 'Gb3'
  860.         when nn=='Gb3' then
  861.         do
  862.             yw = 3.22
  863.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  864.             call ppm_SetSize(20)
  865.             call ppm_TextIntoBox(box#id, 'f')
  866.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  867.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  868.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  869.         end
  870.  
  871.         when nn=='F#3'  then
  872.         do
  873.             yw = 3.32
  874.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  875.             call ppm_SetSize(20)
  876.             call ppm_TextIntoBox(box#id, 's')
  877.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  878.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  879.         end
  880.  
  881.         when nn=='F3'  then
  882.         do
  883.             yw = 3.32
  884.             if al == 'a' then call aufltief()
  885.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  886.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  887.         end
  888.  
  889.         when nn=='E#3'  then
  890.         do
  891.             yw = 3.42
  892.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  893.             call ppm_SetSize(20)
  894.             call ppm_TextIntoBox(box#id, 's')
  895.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  896.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  897.         end
  898.  
  899.         when nn=='E3'  then
  900.         do
  901.             yw = 3.42
  902.             if al == 'a' then call aufltief()
  903.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  904.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  905.         end
  906.  
  907.         when nn=='EB3' then nn = 'Eb3'
  908.         when nn=='Eb3' then
  909.         do
  910.             yw = 3.42
  911.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  912.             call ppm_SetSize(20)
  913.             call ppm_TextIntoBox(box#id, 'f')
  914.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  915.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  916.         end
  917.  
  918.         when nn=='D#3'  then
  919.         do
  920.             yw = 3.52
  921.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  922.             call ppm_SetSize(20)
  923.             call ppm_TextIntoBox(box#id, 's')
  924.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  925.         end
  926.  
  927.         when nn=='D3' then
  928.         do
  929.             yw = 3.52
  930.             if al == 'a' then call aufltief()
  931.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  932.         end
  933.  
  934.         when nn=='DB3' then nn = 'Db3'
  935.         when nn=='Db3' then
  936.         do
  937.             yw = 3.52
  938.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  939.             call ppm_SetSize(20)
  940.             call ppm_TextIntoBox(box#id, 'f')
  941.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  942.         end
  943.  
  944.         when nn=='C#3'    then
  945.         do
  946.             yw = 3.62
  947.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  948.             call ppm_SetSize(20)
  949.             call ppm_TextIntoBox(box#id, 's')
  950.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  951.         end
  952.  
  953.         when nn=='C3'     then
  954.         do
  955.             yw = 3.62
  956.             if al == 'a' then call aufltief()
  957.             call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8)
  958.         end
  959.  
  960.         when nn=='H2'     then
  961.         do
  962.             yw = 3.72
  963.             if al == 'a' then call aufltief()
  964.         end
  965.         when nn=='B2'     then
  966.         do
  967.             yw = 3.72
  968.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  969.             call ppm_SetSize(20)
  970.             call ppm_TextIntoBox(box#id, 'f')
  971.         end
  972.  
  973.         when nn=='A#2'    then
  974.         do
  975.             yw = 3.82
  976.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  977.             call ppm_SetSize(20)
  978.             call ppm_TextIntoBox(box#id, 's')
  979.         end
  980.  
  981.         when nn=='A2'     then
  982.         do
  983.             yw = 3.82
  984.             if al == 'a' then call aufltief()
  985.         end
  986.         when nn=='AB2'    then nn = 'Ab2'
  987.         when nn=='Ab2'    then
  988.         do
  989.             yw = 3.82
  990.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  991.             call ppm_SetSize(20)
  992.             call ppm_TextIntoBox(box#id, 'f')
  993.         end
  994.  
  995.         when nn=='G#2'    then
  996.         do
  997.             yw = 3.92
  998.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  999.             call ppm_SetSize(20)
  1000.             call ppm_TextIntoBox(box#id, 's')
  1001.         end
  1002.  
  1003.         when nn=='G2'     then
  1004.         do
  1005.             yw = 3.92
  1006.             if al == 'a' then call aufltief()
  1007.         end
  1008.         when nn=='GB2'    then nn = 'Gb2'
  1009.         when nn=='Gb2'    then
  1010.         do
  1011.             yw = 3.92
  1012.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1013.             call ppm_SetSize(20)
  1014.             call ppm_TextIntoBox(box#id, 'f')
  1015.         end
  1016.  
  1017.         when nn=='F#2'    then
  1018.         do
  1019.             yw = 4.02
  1020.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1021.             call ppm_SetSize(20)
  1022.             call ppm_TextIntoBox(box#id, 's')
  1023.         end
  1024.  
  1025.         when nn=='F2'     then
  1026.         do
  1027.             yw = 4.02
  1028.             if al == 'a' then call aufltief()
  1029.         end
  1030.         when nn=='E#2'    then
  1031.         do
  1032.             yw = 4.12
  1033.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1034.             call ppm_SetSize(20)
  1035.             call ppm_TextIntoBox(box#id, 's')
  1036.         end
  1037.  
  1038.         when nn=='E2'     then
  1039.         do
  1040.             yw = 4.12
  1041.             if al == 'a' then call aufltief()
  1042.         end
  1043.         when nn=='EB2'    then nn = 'Eb2'
  1044.         when nn=='Eb2'    then
  1045.         do
  1046.             yw = 4.12
  1047.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1048.             call ppm_SetSize(20)
  1049.             call ppm_TextIntoBox(box#id, 'f')
  1050.         end
  1051.  
  1052.         when nn=='D#2'    then
  1053.         do
  1054.             yw = 4.22
  1055.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1056.             call ppm_SetSize(20)
  1057.             call ppm_TextIntoBox(box#id, 's')
  1058.         end
  1059.  
  1060.         when nn=='D2'     then
  1061.         do
  1062.             yw = 4.22
  1063.             if al == 'a' then call aufltief()
  1064.         end
  1065.         when nn=='DB2'    then nn = 'Db2'
  1066.         when nn=='Db2'    then
  1067.         do
  1068.             yw = 4.22
  1069.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1070.             call ppm_SetSize(20)
  1071.             call ppm_TextIntoBox(box#id, 'f')
  1072.         end
  1073.  
  1074.         when nn=='C#2'    then
  1075.         do
  1076.             yw = 4.32
  1077.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1078.             call ppm_SetSize(20)
  1079.             call ppm_TextIntoBox(box#id, 's')
  1080.         end
  1081.  
  1082.         when nn=='C2'     then
  1083.         do
  1084.             yw = 4.32
  1085.             if al == 'a' then call aufltief()
  1086.         end
  1087.         when nn=='H1'     then yw = 4.42
  1088.         when nn=='B1'     then
  1089.         do
  1090.             yw = 4.42
  1091.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1092.             call ppm_SetSize(20)
  1093.             call ppm_TextIntoBox(box#id, 'f')
  1094.         end
  1095.  
  1096.         when nn=='A#1'    then
  1097.         do
  1098.             yw = 4.52
  1099.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1100.             call ppm_SetSize(20)
  1101.             call ppm_TextIntoBox(box#id, 's')
  1102.         end
  1103.  
  1104.         when nn=='A1'     then
  1105.         do
  1106.             yw = 4.52
  1107.             if al == 'a' then call aufltief()
  1108.         end
  1109.         when nn=='AB1'    then nn = 'Ab1'
  1110.         when nn=='Ab1'    then
  1111.         do
  1112.             yw = 4.52
  1113.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1114.             call ppm_SetSize(20)
  1115.             call ppm_TextIntoBox(box#id, 'f')
  1116.         end
  1117.  
  1118.         when nn=='G#1'    then
  1119.         do
  1120.             yw = 4.62
  1121.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1122.             call ppm_SetSize(20)
  1123.             call ppm_TextIntoBox(box#id, 's')
  1124.         end
  1125.  
  1126.         when nn=='G1'     then
  1127.         do
  1128.             yw = 4.62
  1129.             if al == 'a' then call aufltief()
  1130.         end
  1131.         when nn=='GB1'    then nn = 'Gb1'
  1132.         when nn=='Gb1'    then
  1133.         do
  1134.             yw = 4.62
  1135.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1136.             call ppm_SetSize(20)
  1137.             call ppm_TextIntoBox(box#id, 'f')
  1138.         end
  1139.  
  1140.         when nn=='F#1'    then
  1141.         do
  1142.             yw = 4.72
  1143.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1144.             call ppm_SetSize(20)
  1145.             call ppm_TextIntoBox(box#id, 's')
  1146.         end
  1147.  
  1148.         when nn=='F1'     then
  1149.         do
  1150.             yw = 4.72
  1151.             if al == 'a' then call aufltief()
  1152.         end
  1153.  
  1154.         when nn=='E#1'    then
  1155.         do
  1156.             yw = 4.82
  1157.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1158.             call ppm_SetSize(20)
  1159.             call ppm_TextIntoBox(box#id, 's')
  1160.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1161.         end
  1162.  
  1163.         when nn=='E1' then
  1164.         do
  1165.             yw = 4.82
  1166.             if al == 'a' then call aufltief()
  1167.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1168.         end
  1169.  
  1170.         when nn=='EB1'    then nn = 'Eb1'
  1171.         when nn=='Eb1'  then
  1172.         do
  1173.             yw = 4.82
  1174.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1175.             call ppm_SetSize(20)
  1176.             call ppm_TextIntoBox(box#id, 'f')
  1177.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1178.         end
  1179.  
  1180.         when nn=='D#1'  then
  1181.         do
  1182.             yw = 4.92
  1183.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1184.             call ppm_SetSize(20)
  1185.             call ppm_TextIntoBox(box#id, 's')
  1186.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1187.         end
  1188.  
  1189.         when nn=='D1'  then
  1190.         do
  1191.             yw = 4.92
  1192.             if al == 'a' then call aufltief()
  1193.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1194.         end
  1195.  
  1196.         when nn=='DB1'    then nn = 'Db1'
  1197.         when nn=='Db1' then
  1198.         do
  1199.             yw = 4.92
  1200.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1201.             call ppm_SetSize(20)
  1202.             call ppm_TextIntoBox(box#id, 'f')
  1203.             call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1204.         end
  1205.  
  1206.         when nn=='C#1'  then
  1207.         do
  1208.           yw = 5.02
  1209.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1210.             call ppm_SetSize(20)
  1211.             call ppm_TextIntoBox(box#id, 's')
  1212.           call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1213.           call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2)
  1214.         end
  1215.  
  1216.         when nn=='C1'  then
  1217.         do
  1218.           yw = 5.02
  1219.             if al == 'a' then call aufltief()
  1220.           call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5)
  1221.           call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2)
  1222.         end
  1223.         otherwise notenwert()
  1224.       end
  1225.  
  1226.         /* größe einer Notenbox */
  1227.  
  1228.         notewidht = 0.64
  1229.         noteheight = 0.97
  1230.  
  1231.  
  1232.         boxid = ppm_CreateBox(notex, yw+zz, notewidht, noteheight, 0)
  1233.         call ppm_SetSize(notepkt)
  1234.         call ppm_TextIntoBox(boxid, nw)
  1235.         notex = (notex + xw)
  1236.         if notex >=18.7 then
  1237.             do
  1238.               notex = 2.5
  1239.               zz = zz + 4
  1240.             end
  1241.         px = notex - 4
  1242.         py = zz-1
  1243.         if px < 0 then px = 0
  1244.         call ppm_SetPagePosition(px, py+1.5)
  1245.       end
  1246.    end
  1247.  end
  1248. exit
  1249.  
  1250. auflhoch:
  1251. do
  1252.   Pbox = ppm_CreateBox(notex-0.34, yw+zz+0.07, 0.6, 1.2, 0)
  1253.   boxnm = ppm_DocNextBox(Pbox)
  1254.   call ppm_DeleteContents(boxnm)
  1255.   call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/Auflsng', Zeichen)
  1256.   return
  1257. end
  1258.  
  1259. aufltief:
  1260. do
  1261.   Pbox = ppm_CreateBox(notex-0.34, yw+zz-0.4, 0.6, 1.2, 0)
  1262.   boxnm = ppm_DocNextBox(Pbox)
  1263.   call ppm_DeleteContents(boxnm)
  1264.   call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/Auflsng', Zeichen)
  1265.   return
  1266. end
  1267.  
  1268. break_d:
  1269. break_e:
  1270. break_c:
  1271. halt:
  1272.     call exit_msg("User aborted Genie!")
  1273.  
  1274. exit_msg: procedure
  1275. do
  1276.     parse arg message
  1277.  
  1278.     if message ~= '' then
  1279.     call ppm_Inform(1,message,)
  1280.  
  1281.     call ppm_ClearStatus()
  1282.     call ppm_AutoUpdate(1)
  1283.     exit
  1284. end
  1285.